package com.rjpacket.MyUEnjoy;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.widget.ImageView;
import com.rjpacket.MyUEnjoy.adapters.PhotoAdapter;

/**
 * Created by aaa on 15-1-23.
 */
public class FirstMainActivity extends FragmentActivity implements View.OnClickListener {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.first_main_activity);

        ViewPager pager = (ViewPager) findViewById(R.id.pager_photo);
        pager.setAdapter(new PhotoAdapter(getSupportFragmentManager()));

        ImageView imageView = (ImageView) findViewById(R.id.image_store);
        imageView.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        Intent intent = new Intent(this,StoreActivity.class);
        startActivity(intent);
    }
}